export default {
  data() {
    return {
      total: 0,
      currentPage: 1,
      pageSize: 10,
      pageSizeList: [10, 20, 50, 100],
      layout: 'total, sizes, prev, pager, next, jumper',
    };
  },
  methods: {
    /**
     * 统一查询方法
     */
    searchList() {
      throw Error('yet not implement!');
    },
    /**
     * 修改每页展示条数时
     */
    handleSizeChange(val) {
      this.pageSize = val;
      this.currentPage = 1;
      this.searchList();
    },
    /**
     * 跳转页面
     */
    handleCurrentChange(val) {
      this.currentPage = val;
      console.log( this.currentPage )
      this.searchList();
    },
    /**
     * 重置分页器
     */
    searchCall() {
      this.currentPage = 1;
      this.searchList();
    },
    /**
     * 列表序号 type="index" :index="listIndex"
     */
    listIndex(index) {
      return (this.currentPage - 1) * this.pageSize + index + 1;
    },
  },
};
// 例：路径
// csii.vx3._web-V3.5.0\src\views\entiFundPool\businessQry\businessSelect.vue
